﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;

namespace SSCCDataAccess
{
    static class Connection
    {
        static Connection()
        {
            var connectionStringSettings = ConfigurationManager.ConnectionStrings["mainConn"];
            if (connectionStringSettings == null || connectionStringSettings.ConnectionString.Trim() == "")
                throw new Exception("Connection string cannot be blank.");
            ConnectionString = connectionStringSettings.ConnectionString;
        }
        public static readonly string ConnectionString;


    }
}
